package sv.gob.mh.dgii.model;

// Generated 07-08-2013 11:08:04 AM by Hibernate Tools 3.4.0.CR1

import java.util.Date;
import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToOne;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * RcTramiteTmp generated by hbm2java
 */
@Entity
@Table(name = "RC_TRAMITE_TMP", schema = "RUC")
public class RcTramiteTmp implements java.io.Serializable {

	private RcTramiteTmpId id;
	private RcRucTmp rcRucTmp;
	private String NFolio;
	private String CTramite;
	private String CUsuario;
	private String CAdmTrib;
	private String CGestion;
	private Date FTramite;
	private Date fhIngreso;
	private String CRiesgoInsc;
	private String CUnidadRecep;
	private String NNotaAbono;
	private String NTiquete;

	public RcTramiteTmp() {
	}

	public RcTramiteTmp(RcRucTmp rcRucTmp) {
		this.rcRucTmp = rcRucTmp;
	}

	public RcTramiteTmp(RcRucTmp rcRucTmp, String NFolio, String CTramite,
			String CUsuario, String CAdmTrib, String CGestion, Date FTramite,
			Date fhIngreso, String CRiesgoInsc, String CUnidadRecep,
			String NNotaAbono, String NTiquete) {
		this.rcRucTmp = rcRucTmp;
		this.NFolio = NFolio;
		this.CTramite = CTramite;
		this.CUsuario = CUsuario;
		this.CAdmTrib = CAdmTrib;
		this.CGestion = CGestion;
		this.FTramite = FTramite;
		this.fhIngreso = fhIngreso;
		this.CRiesgoInsc = CRiesgoInsc;
		this.CUnidadRecep = CUnidadRecep;
		this.NNotaAbono = NNotaAbono;
		this.NTiquete = NTiquete;
	}

	@EmbeddedId
	@AttributeOverrides({
			@AttributeOverride(name = "ICorrelativo", column = @Column(name = "I_CORRELATIVO", nullable = false, precision = 18, scale = 0)),
			@AttributeOverride(name = "nit", column = @Column(name = "NIT", nullable = false, length = 14)) })
	public RcTramiteTmpId getId() {
		return this.id;
	}

	public void setId(RcTramiteTmpId id) {
		this.id = id;
	}

	@OneToOne(fetch = FetchType.LAZY)
	@PrimaryKeyJoinColumn
	public RcRucTmp getRcRucTmp() {
		return this.rcRucTmp;
	}

	public void setRcRucTmp(RcRucTmp rcRucTmp) {
		this.rcRucTmp = rcRucTmp;
	}

	@Column(name = "N_FOLIO", length = 12)
	public String getNFolio() {
		return this.NFolio;
	}

	public void setNFolio(String NFolio) {
		this.NFolio = NFolio;
	}

	@Column(name = "C_TRAMITE", length = 3)
	public String getCTramite() {
		return this.CTramite;
	}

	public void setCTramite(String CTramite) {
		this.CTramite = CTramite;
	}

	@Column(name = "C_USUARIO", length = 30)
	public String getCUsuario() {
		return this.CUsuario;
	}

	public void setCUsuario(String CUsuario) {
		this.CUsuario = CUsuario;
	}

	@Column(name = "C_ADM_TRIB", length = 2)
	public String getCAdmTrib() {
		return this.CAdmTrib;
	}

	public void setCAdmTrib(String CAdmTrib) {
		this.CAdmTrib = CAdmTrib;
	}

	@Column(name = "C_GESTION", length = 1)
	public String getCGestion() {
		return this.CGestion;
	}

	public void setCGestion(String CGestion) {
		this.CGestion = CGestion;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "F_TRAMITE", length = 7)
	public Date getFTramite() {
		return this.FTramite;
	}

	public void setFTramite(Date FTramite) {
		this.FTramite = FTramite;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "FH_INGRESO", length = 7)
	public Date getFhIngreso() {
		return this.fhIngreso;
	}

	public void setFhIngreso(Date fhIngreso) {
		this.fhIngreso = fhIngreso;
	}

	@Column(name = "C_RIESGO_INSC", length = 1)
	public String getCRiesgoInsc() {
		return this.CRiesgoInsc;
	}

	public void setCRiesgoInsc(String CRiesgoInsc) {
		this.CRiesgoInsc = CRiesgoInsc;
	}

	@Column(name = "C_UNIDAD_RECEP", length = 5)
	public String getCUnidadRecep() {
		return this.CUnidadRecep;
	}

	public void setCUnidadRecep(String CUnidadRecep) {
		this.CUnidadRecep = CUnidadRecep;
	}

	@Column(name = "N_NOTA_ABONO", length = 12)
	public String getNNotaAbono() {
		return this.NNotaAbono;
	}

	public void setNNotaAbono(String NNotaAbono) {
		this.NNotaAbono = NNotaAbono;
	}

	@Column(name = "N_TIQUETE", length = 12)
	public String getNTiquete() {
		return this.NTiquete;
	}

	public void setNTiquete(String NTiquete) {
		this.NTiquete = NTiquete;
	}

}
